<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  <title>用户登录</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="<%=path %>/js/jquery.js"></script>
	<script type="text/javascript" src="<%=path %>/js/data.js"></script>
	<script type="text/javascript" src="<%=path %>/js/ToastMessage.js"></script>
	<script type="text/javascript" src="<%=path %>/plugin/js/colorpicker.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/data.css"/>
	<link rel="stylesheet" type="text/css" href="<%=path %>/plugin/css/colorpicker.css"/>
	<style type="text/css">
		body {
			text-align:center;
		}
		
		#titleDiv {
			margin-top:200px;
		}
		#title {
			font-size:30px;
			color:red;
		}
		form {
			margin-top:50px;
		}
	</style>
  </head>
   
  <body background="image/background3.jpg">
  				<div id="titleDiv"><span id="title">欢迎使用功能强大的数据录入生成系统</span></div>
   				<form action="main.jsp" method="post" id="form">
   				用户名:<input type="text" value="管理员" id="name"/>
   				密码	  :<input type="password"  id="password"/>
   				<input type="button" id="commit" value="登录"/>
   				</form>
   <script type="text/javascript">
   		$(document).ready(function(){
					$("#commit").bind("click",function(){
									var name = $("#name").val();
									var password = $("#password").val();
									if(name=="管理员"&&password=="123"){
													$("#form").submit();
									}else {
											alert("用户名或密码错误");
											return;
									}
						});
   	   })
   		
   </script>
  </body>
</html>
